package pocket;

import java.util.HashMap;
import java.util.HashSet;

public class Coin {
    private HashMap<Integer, String> names = new HashMap<Integer, String>();
    private HashSet<String> types = new HashSet<String>();

    public Coin() {
        names.put(1, "penny");
        names.put(10, "dime");
        types.add("1983");
        types.add("1983");
        types.add("1997");
    }

    public String getName(int amount) {
        return names.get(amount);
    }

    public HashSet<String> getTypes() {
        return this.types;
    }

    public static void main(String[] args) {
        Coin c = new Coin();
        String out = c.getName(1);
        System.out.println(out);

        for (String s : c.getTypes()) {
            System.out.println(s);
        }
    }
}
